package com.handpay.nocardpay.baselibrary.qualificationinfo.model.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.handpay.nocardpay.baselibrary.commbase.model.bean.BaseResponseBean;

/**
 * Created by fplei on 2017/8/15.
 * 该实体为根据卡bin查询单个主行数据
 */

public class ResultSingleBankBean extends BaseResponseBean implements Parcelable {
    private String bankCode;
    private String bankName;
    private String message;

    public String getBankCode() {
        return bankCode;
    }

    public void setBankCode(String bankCode) {
        this.bankCode = bankCode;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.bankCode);
        dest.writeString(this.bankName);
        dest.writeString(this.message);
    }

    public ResultSingleBankBean() {
    }

    protected ResultSingleBankBean(Parcel in) {
        this.bankCode = in.readString();
        this.bankName = in.readString();
        this.message = in.readString();
    }

    public static final Creator<ResultSingleBankBean> CREATOR = new Creator<ResultSingleBankBean>() {
        @Override
        public ResultSingleBankBean createFromParcel(Parcel source) {
            return new ResultSingleBankBean(source);
        }

        @Override
        public ResultSingleBankBean[] newArray(int size) {
            return new ResultSingleBankBean[size];
        }
    };

    @Override
    public String toString() {
        return "ResultSingleBankBean{" +
                "bankCode='" + bankCode + '\'' +
                ", bankName='" + bankName + '\'' +
                ", message='" + message + '\'' +
                '}';
    }
}
